package com.myw.mail.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单项对象 t_order_item
 * 
 * @author myw
 * @date 2025-07-10
 */
@Data
@TableName("t_order_item")
public class OrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单ID */
    private Long orderId;

    /** 商品ID */
    private Long productId;

    /** 商品名称（下单时快照） */
    @Excel(name = "商品名称", readConverterExp = "下=单时快照")
    private String productName;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;


}
